<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>017-2D变换_rotate旋转</title>
		<style>
			.outer {
				width: 200px;
				height: 200px;
				border: 2px solid black;
				margin: 100px auto;
			}

			.inner {
				width: 200px;
				height: 200px;
				background-color: skyblue;
				/*  rotate 和 rotateZ 都表示 2D 旋转，写一个值的时候没有区别 */
				/* transform: rotateZ(30deg); */
				transform: rotate(30deg);
			}
		</style>
	</head>
	<body>
		<div class="outer">
			<div class="inner">你好啊</div>
		</div>
	</body>
</html>
